﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using GeoBox.Database;

namespace GeoBox.Database
{
    public class GpsPoint
    {
        [Key, Column(Order=0)]
        public int DeviceId { get; set; }

        [Key, Column(Order = 1)]
        public DateTime UtcTime { get; set; }

        public double Latitude { get; set; }

        public double Longitude { get; set; }

        [ForeignKey("DeviceId")]
        public virtual Device Device { get; set; }
    }
}
